package com.why;

import com.why.cache.BeanCache;

import java.util.Objects;

public class Test {
    public String a = "11";
    public static void main(String[] args) {
        BeanCache.putBean("test", new Test());
        System.out.println(Objects.requireNonNull(BeanCache.getBean("test", Test.class)).a);
    }
}
